<template>
  <div id="app" >
        <router-view v-if="isRouterActive"/>
        <AllUse ></AllUse>
        <Intercom></Intercom>
        <audio src="" id="buttonAudio"></audio>
  </div>
</template>
<style lang="less">
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin: 0;
  padding: 0;
  width: 100vw;
  min-height: 100%;
  -webkit-tap-highlight-color:transparent;
}
* { touch-action: pan-y; }
</style>
<script>
  export  default {
    name:'app',
    provide(){
      return {
        reload:this.reload
      }
    },
    data(){
      return{
        isRouterActive:true,
      }
    },
    methods:{
      reload(){
        this.isRouterActive = false;
        this.$nextTick(function(){
          this.isRouterActive = true;
        });
      }
    },
  }
</script>